package thread;

public class ThreadInfoDemo {
    public static void main(String[] args) {
        Thread main = Thread.currentThread();
        System.out.println(main);
        doSome();
    }

    public static void doSome() {
        Thread current = Thread.currentThread();
        System.out.println(current);

        System.out.println(current.getName());
        System.out.println(current.getId());
        System.out.println(current.getPriority());

        System.out.println(current.isDaemon());
        System.out.println(current.isAlive());
        System.out.println(current.isInterrupted());
    }
}
